<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title></title>
		<style>
			#printMe{
				width:600px;
				margin:0 auto;
			}
		</style>
	</head>
	<body>
		<button id="btn">打印</button>
		<table id="table">
		  <tr><td>Header 1</td></tr>
		  <tr><td>Value 1</td></tr>
		  <tr><td>Value 2</td></tr>
		</table>
		<div id="printMe">你好啊啊</div>
		<script src="http://libs.baidu.com/jquery/2.0.0/jquery.min.js"></script>
		<script>
			$("#btn").click(function(){
				$("#table").hide();
				window.print();
//				$("#printMe").printArea();
			})
		</script>
	</body>
</html>
